﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocCotizaImpr.aspx.cs" Inherits="DECOR.WebApp.DocCotizaImpr1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    
    <style type="text/css">
        body
        {
        	font-family: Arial, Tahoma;
            font: 10px;
            padding: 0 0 0 0;
        }
        
        #topContent
        {
        	height:80pt;
        }
        
        #logo
        {
        	float: left;
        	text-align: left;
        }
        #fecha
        {
        	float: right;
        	text-align: left;
        	padding-top: 20pt;
        	padding-right: 50pt;
        	width: 150pt;
        	font-family: Arial, Helvetica, sans-serif;
            height: 75px;
        }
        
        #mainContent
        {
        	height:43px;
        }
        
        #tituloContent
        {
        	height:26px;
            width: 303px;
        }
        
        #direccion
        {
        	font-family: Arial, Helvetica, sans-serif;
        	width: 200pt;
        	height: 21pt;
        }
        #titulo
        {
        	width: 200pt;
        	float: left;
        	text-align: center;
            height: 17px;
            margin-right: 0px;
        }
        #otroDerecha
        {
        	width: 131pt;
        	float: right;
        	text-align: left;
        }
        #Div2
        {
            height: 43px;
            /*width: 275px;*/
            width: 220px;
        }
        .style4
        {
        }
        .style8
        {
            width: 27px;
        }
        .style9
        {
        }
        .style11
        {
            height: 47px;
        }
        .style14
        {
            width: 98px;
            height: 17px;
            font-family: "Courier New", Courier, monospace;
        }
        .style15
        {
            width: 27px;
            height: 17px;
        }
        .style16
        {
            height: 17px;
            width: 143px;
        }
        .style21
        {
            font-family: "Courier New", Courier, monospace;
        }
        .style24
        {
            width: 315px;
            margin-right: 0px;
        }
        .style30
        {
            font-size: xx-small;
            font-family: "Courier New", Courier, monospace;
        }
        .style32
        {
            text-align: justify;
            width: 278px;
        }
        .style33
        {
            height: 29px;
        }
        .style34
        {
            height: 13px;
            font-family: "Courier New", Courier, monospace;
            font-weight: bold;
        }
        .style35
        {
            width: 278px;
        }
        .style36
        {
            width: 143px;
        }
        .style37
        {
            width: 59%;
        }
        </style>
    <link rel ="stylesheet"  href="css/Impresion.css" />
</head>

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <table style="width: 42%;">
        <tr>
            <td colspan="2" class="style33">
                <input id="btnImprimir" type="image" src="img/print22.png" 
                        alt="Imprimir" title="Imprimir" onclick="imprimirPagina();" />
            </td>
        </tr>
        
        <tr>
            <td style="vertical-align:middle; text-align: center;" class="style34" 
                colspan="3">
                DECOR CENTER S.A <br />
                <asp:Label ID="lblSociedad" runat="server" Font-Size="9px" 
                   Width="377px" Height="16px" style="text-align: center" 
                    Font-Names="Courier New"   />
                </td>
        </tr>
       </table>
       <table>
        <tr>
            <td>
                <asp:Label ID="lblDireccionLogo" runat="server" Font-Size="13px" 
                   Width="377px" Height="16px" style="text-align: left" 
                    Font-Names="Imprint MT Shadow"   />
            </td>
        </tr>
        </table>
      <table>
        <tr>
            <td style="text-align:left; vertical-align:top; " class="style11" colspan="3">
            <asp:Label ID="lblTelefonosLogo" runat="server" Font-Size="8px" 
                    
                    Font-Names="Courier New"  />
                <br />
                <span class="style30">RUC</span> 
                <asp:Label ID="lblRUC2" runat="server" 
                    Font-Size="11px" Font-Names="Courier New" />
            </td>
        </tr>
        
        <tr>
            <td style="text-align:left; vertical-align:top; " class="style4">
                        &nbsp;</td>
            <td style="font-size: 10px;" class="style4">
                &nbsp;<asp:Label ID="lblFecha" runat="server" Font-Names="Courier New"  Font-Size="11px" />
            </td>
            <td style="text-align:left; vertical-align:middle; " class="style37">
                <asp:Label ID="lblHora" runat="server" Font-Size="11px" />
            </td>
        </tr>
        
        <tr>
            <td style="text-align:center; vertical-align:top; " class="style9" colspan="3">
                <asp:Label ID="lblCoti" runat="server" Font-Names="Courier New"  Font-Size="14px" Font-Bold="True" />
                <br />
                <asp:Label ID="lblCotiza" runat="server" Font-Names="Courier New"  Font-Size="14px" Font-Bold="True" />
            </td>
        </tr>
    </table>
    
    
    <div id="tituloContent">
        
        
      
            <table style="width:99%; font-family: Arial, Helvetica, sans-serif;">
                <tr>
                    <td class="style14"style="font-size: 10px">
                        CLIENTE</td>
                    <td class="style15"style="font-size: 10px">
                        :</td>
                    <td class="style16">
                        <asp:Label ID="lblNCliente" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style14"style="font-size: 10px">
                        DNI / RUC</td>
                    <td class="style15"style="font-size: 10px">
                        :</td>
                    <td class="style16">
                        <asp:Label ID="lblRucCli" runat="server" Font-Names="Courier New"  Font-Size ="10px" ></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style21" style="font-size: 10px">
                        ASESOR COMERCIAL</td>
                    <td class="style8" style="font-size: 10px">
                        :</td>
                    <td class="style36">
                        <asp:Label ID="lblVendedor" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style21"style="font-size: 10px">
                        TELEFONO</td>
                    <td class="style8"style="font-size: 10px">
                        :</td>
                    <td class="style36">
                        <asp:Label ID="lblTelef" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label>
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
                        <cc2:CoolGridView ID="GdvLista" runat="server" 
                AutoGenerateColumns="False" AllowSorting="false"
                            Font-Size="11px" HorizontalAlign="Justify"  
                GridLines="None"                
                            Font-Names="Courier New" BorderColor="White" DefaultColumnWidth="340px" RowStyle-Width ="350px"
                ShowFooter="false" ShowHeader="true" BorderStyle="None" BorderWidth="0px"  AllowResizeColumn="False">
                             
                              <Columns >
                                <asp:TemplateField>
                                     <HeaderTemplate>
                                        <table width="300px" border="0px" style="border-width: 1px; border-color: #000000; border-style: solid none solid none; font-family: 'Courier New', Courier, monospace; font-size: 9px;" >
                                            <tr>
                                                <th style="width:70px;">CANT.</th>
                                                <th style="width:30px;">UND</th>
                                                <th style="width:120px;">MATERIAL</th>
                                                <th style="width:80px;" align ="center">TOTAL S/. INC. I.G.V</th>
                                            </tr>
                                        </table>
                                     </HeaderTemplate>
                                     <ItemTemplate >
                                          <table width="340px">
                                            <tr>  
                                                <td style="text-align:left;" colspan="4"  >
                                                    <asp:Label ID="DescMaterial" Width="330px"  runat="server" Text='<%# Bind("DescMaterialTicketera") %>'  style="font-family: 'Courier New', Courier, monospace; font-size: 10px;"/>
                                                    <%--<asp:Label ID="Label1" Width="330px"  runat="server" Text='<%# Bind("DescMaterial") %>'  style="font-family: 'Courier New', Courier, monospace; font-size: 8px;"/>--%>
                                                </td>                                                    
                                            </tr>
                                            <tr>  
                                                <td style="text-align:left;width:70px;"  >
                                                    <asp:Label ID="Cantidad" width="70px" style="font-family: 'Courier New', Courier, monospace; font-size: 9px;" DataFormatString="{0:n2}" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Cantidad","{0:n2}") %>' />
                                                </td>                                                    
                                                <td style="text-align:center;width:30px;">
                                                    <asp:Label ID="CodUMedida" width="30px"  runat="server" Text='<%# Bind("CodUMedida") %>'  style="font-family: 'Courier New', Courier, monospace; font-size: 9px;"/>
                                                </td>
                                                <td style="text-align:center;width:110px;">
                                                    <asp:Label ID="CodMaterialCorto" width="55px"  DataFormatString="{0:n2}" style="font-family: 'Courier New', Courier, monospace; font-size: 10px;" runat="server"  Text='<%# DataBinder.Eval(Container.DataItem, "CodMaterialCorto","{0:n2}") %>'/>
                                                </td>
                                                <td style="text-align:right;width:80px;">
                                                    <asp:Label ID="TotalImpresion" width="80px"   DataFormatString="{0:n2}"  style="font-family: 'Courier New', Courier, monospace; font-size: 10px; " runat="server"  Text='<%# DataBinder.Eval(Container.DataItem, "TotalImpresion","{0:n2}") %>'/>
                                                </td>
                                            </tr>
                                        </table>
                                     </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <BoundaryStyle BorderWidth="0px" BorderStyle="None"></BoundaryStyle>

                            </cc2:CoolGridView>
        
        
      
        <table style="width: 103%; margin-right: 0px;">
            <tr>
                <td class="style35">
                        <table align="right" class="style24" 
                            style="border-top-style: solid; border-bottom-style: solid; border-width: 1px; border-color: #000000">
                            <tr>
                                <td  style="font-family: 'courier New', Courier, monospace; font-size: 11px"> PERCEPCIÓN</td>
                                <td>   
                                    <asp:Label ID="lblPerc" runat="server" Font-Names="Courier New"  Font-Size="11px" />
                                </td>
                            </tr>
                            
                            <tr>
                                <td  style="font-family: 'courier New', Courier, monospace; font-size: 11px"> TOTAL S/. INC. I.G.V </td>
                                <td>   
                                    <asp:Label ID="lblTotal" runat="server" Font-Names="Courier New"  Font-Size="11px" />
                                </td>
                            </tr>
                            
                            
                            
                        </table>
                    </td>
            </tr>
            <tr>
                <td style="font-size: small;" class="style35">
                    <asp:GridView ID="GdvGlosa" runat="server" AutoGenerateColumns="False" 
                                  Font-Names="Courier New"  Font-Size="11px" HorizontalAlign="Justify" 
                        Width="100%" BorderWidth="0px" ShowHeader="false">
                                  <Columns>
                                    <asp:BoundField DataField="glosa">
                                        <ItemStyle HorizontalAlign="Justify" ></ItemStyle>
                                    </asp:BoundField>                                 
                                </Columns>
                    </asp:GridView>
                    <br />
                </td>
            </tr>
            <tr>
                <td class="style32">
                        <%--<asp:Label 
                ID="lblGlosa1" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label> 
                    <br />
                        <asp:Label 
                ID="lblGlosa2" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label> 
                    <br />
                        <asp:Label 
                ID="lblGlosa3" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label> 
                    <br />
                        <asp:Label 
                ID="lblGlosa4" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label> 
                    <br />
                        <asp:Label 
                ID="lblGlosa5" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label> 
                    <br />
                        <asp:Label 
                ID="lblGlosa6" runat="server" Font-Names="Courier New"  Font-Size="11px"></asp:Label> 
                    <br />
                    <asp:Label 
            ID="lblGlosa7" runat="server" Font-Names="Courier New"  Font-Size="11px" 
                        ></asp:Label> 
                    <br/>
                    <br />
                    <asp:Label 
            ID="lblGlosa8" runat="server" Font-Names="Courier New"  Font-Size="15px"></asp:Label>--%> 
                    </td>
            </tr>
                
            </table>
                        
    </div>
    
    <script type="text/javascript">
        function imprimirPagina() {
            if (window.print)
            {
                document.getElementById("btnImprimir").style.display = 'none';
                window.print();
                if (window.opera){ 
                    setTimeout("document.getElementById('btnImprimir').style.display = ''", 1); 
                }else{
                    document.getElementById("btnImprimir").style.display = '';
                }
            }
            else{
                alert("Por favor, presione 'Ctrl + P' o vaya al menú Archivo y seleccione Imprimir.");
            }
        }
    </script>
    
    </form>
    
    </body>
</html>
